<!-- 字符乱码(为什么每次设置了都感觉没有用呢，登陆的时候如果用中文登陆得到的就是乱码) -->
<filter>
	<filter-name>characterEncoding</filter-name>
	<filter-class>org.springframework.web.filter.CharacterEncodingFilter
	</filter-class>
	<init-param>
		<param-name>encoding</param-name>
		<param-value>UTF-8</param-value>
	</init-param>
	<init-param>
		<param-name>forceEncoding</param-name>
		<param-value>true</param-value>
	</init-param>
</filter>
<filter-mapping>
	<filter-name>characterEncoding</filter-name>
	<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- ETag过滤器,节省带宽 -->
<filter>
	<filter-name>etagFilter</filter-name>
	<filter-class>org.springframework.web.filter.ShallowEtagHeaderFilter
	</filter-class>
</filter>
<filter-mapping>
	<filter-name>etagFilter</filter-name>
	<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- 权限 Spring Security3.1 的权限过滤 
<filter>
	<filter-name>springSecurityFilterChain</filter-name>
	<filter-class>
		org.springframework.web.filter.DelegatingFilterProxy
	</filter-class>
</filter>
<filter-mapping>
	<filter-name>springSecurityFilterChain</filter-name>
	<url-pattern>/*</url-pattern>
</filter-mapping>
-->

<!-- 登陆拦截 -->
<filter>
	<filter-name>loginFilter</filter-name>
	<filter-class>com.qaplus.filter.LoginFilter</filter-class>
	<init-param>
		<param-name>notDealResources</param-name>
		<param-value>.css,.js,.png,.jpg,.woff</param-value>
	</init-param>
</filter>
<filter-mapping>
	<filter-name>loginFilter</filter-name>
	<url-pattern>*.jsp</url-pattern>
</filter-mapping>
